<template>
  <div>
    <div class="leftimg">
      <img :src="bg" alt="" />
      <span>{{ devicedata.name }}</span>
    </div>
    <div class="midStr"></div>
    <div class="righttxt">
      <div>
        <span>正常数</span>
        <span>
          <te-flop
            :number="devicedata.common"
            :animationTime="1"
            :intervalTime="10000"
          ></te-flop
        ></span>
      </div>
      <div>
        <span>维修数</span>
        <span>
          <te-flop
            :number=" devicedata.service "
            :animationTime="1"
            :intervalTime="10000"
          ></te-flop
        ></span>
      </div>
      <div>
        <span>故障数</span>
        <te-flop
            :number=" devicedata.fault "
            :animationTime="1"
            :intervalTime="10000"
          ></te-flop
        >
        <span></span>
      </div>
      <div>
        <span>合计</span>
        <te-flop
            :number=" devicedata.total "
            :animationTime="1"
            :intervalTime="10000"
            flop-class="floptotal"
          ></te-flop
        >
        <span></span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    devicedata: {
      type: Object,
      required: false,
      default: "",
    },
    bg: {
      type: String,
      required: false,
      default: "",
    },
  },
  name: "stitle",
  data() {
    return {};
  },
  methods: {},
  mounted() {},
};
</script>
<style>
 .floptotal .te-dataBoc--item span {
  color: #F4F100!important;
}
</style>
<style  scoped>
.leftimg {
  width: 40%;
  height: 100%;
  text-align: center;
}
.leftimg > span {
  display: inline-block;
  transform: translateY(-10px);
}
.midStr {
  width: 2px;
  height: 51px;
  margin-top: 10px;
  background-color: #d7f8ff;
}
.righttxt {
  width: 50%;
  height: 100%;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.righttxt > div {
  width: 47%;
  height: 47%;
}
.righttxt > div:nth-child(-n + 3) > span:nth-child(2) {
  color: #8eb8ff;
}
.righttxt > div:nth-child(4) > span:nth-child(2) {
  color: #f4f100;
}
.righttxt > div > span {
  display: block;
}
.te-flop /deep/ li {
  width: 10px;
 
}
.te-flop /deep/ .te-dataBoc--item span {
  font-size: 14px;
  line-height: 15px !important;
  color: #8EB8FF;
}

</style>